--[[/**
-- * 
 * 释放终极技时，场上友方近战单位不超过2位时，锡蒙利临时提高20%基础攻击力
-- */]]

---@class BuffEffect688100 : BaseBuffEffect
BuffEffect688100 = ClientFight.CreateClass("BuffEffect688100", ClientFight.BaseBuffEffect)
local t = BuffEffect688100

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
 local limit = buff.buffBean.f_BuffEffectValue[1];
 local fighters = fight.teams[buff.target.teamIndex].fighters;
 local size = 0;
 for k, fighter in pairs( fighters) do
 if (fighter.isRangedCLass()) then
 goto continue;
 end
 if (fighter:isDie()) then
 goto continue;
 end
 size = size + 1;
 if (size > limit) then
 return IBuffEffect.FAIL;
 end
  ::continue::
 end
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()